﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="TileDownLoader.MainWindow"
        Title="MainWindow" Height="249" Width="618" ResizeMode="CanMinimize">
    <Grid>
        <TabControl Margin="0,0,8,8">
        	<TabItem Header="DownloadTile">
        		<Grid Background="#FFE5E5E5">
        			<GroupBox Header="Download Tile Panel" HorizontalAlignment="Left" x:Name="groupBox1" Width="577" Margin="8,8,0,0" Height="174" VerticalAlignment="Top">
        				<Grid>
        					<TextBox Height="27" HorizontalAlignment="Right" Margin="0,11,48,0" x:Name="txtMapPrjpath" VerticalAlignment="Top" Width="365" />
        					<TextBlock Height="26" HorizontalAlignment="Left" Margin="15,16,0,0" x:Name="textBlock1" Text="Select the Map Project File:" VerticalAlignment="Top" Width="147" />
        					<Button Content="..." Height="28" HorizontalAlignment="Right" Margin="0,10,5,0" x:Name="bttnBrowse" VerticalAlignment="Top" Width="37" Click="bttnBrowse_Click" />
        					<TextBlock Height="26" HorizontalAlignment="Left" Margin="80,52,0,0" x:Name="textBlock2" Text="Save Tiles To:" VerticalAlignment="Top" Width="74" />
        					<TextBox Height="27" HorizontalAlignment="Right" Margin="0,46,48,0" x:Name="txtOutputFolder" VerticalAlignment="Top" Width="365" />
        					<Button Content="..." Height="28" HorizontalAlignment="Right" Margin="0,44,5,0" x:Name="bttnBrowseFolder" VerticalAlignment="Top" Width="37" Click="bttnBrowseFolder_Click" />
        					<Button Content="Download Tiles" Height="26" HorizontalAlignment="Right" Margin="0,121,5,0" x:Name="bttnDownloadTiles" VerticalAlignment="Top" Width="97" Click="bttnDownloadTiles_Click" />
        					<ProgressBar Height="26" Margin="5,121,212,0" x:Name="downProgress" SmallChange="1" VerticalAlignment="Top" />
        					<Button Content="Cancel" Height="26" HorizontalAlignment="Right" Margin="0,121,109,0" x:Name="bttnCancel" VerticalAlignment="Top" Width="97" Click="bttnCancel_Click" />
        					<Label Height="24" HorizontalAlignment="Left" Margin="6,86,0,0" x:Name="lblDwnStatus" VerticalAlignment="Top" Width="556" />
        				</Grid>
        			</GroupBox>
        		</Grid>
        	</TabItem>
        	<TabItem Header="Generate KML">
        		<Grid Background="#FFE5E5E5">
        			<GroupBox Header="KMZ file Builder" Height="160" HorizontalAlignment="Left" Margin="8,8,0,0" x:Name="groupBox2" VerticalAlignment="Top" Width="575">
        				<Grid>
        					<TextBlock Height="22" HorizontalAlignment="Left" Margin="59,18,0,0" x:Name="textBlock3" Text="SelectTiles From:" VerticalAlignment="Top" Width="93" />
        					<TextBox Height="27" HorizontalAlignment="Right" Margin="0,13,48,0" x:Name="txtInputFolder" VerticalAlignment="Top" Width="365" />
        					<Button Content="..." Height="28" HorizontalAlignment="Right" Margin="0,10,5,0" x:Name="bttnBrowseInputfolder" VerticalAlignment="Top" Width="37" Click="bttnBrowseInputfolder_Click" />
        					<Button Content="Generate KML" Height="26" HorizontalAlignment="Right" Margin="0,107,5,0" x:Name="bttnGenerateKml" VerticalAlignment="Top" Width="96" Click="bttnGenerateKml_Click" />
        					<ProgressBar Height="26" HorizontalAlignment="Left" Margin="6,107,0,0" x:Name="progressKml" SmallChange="1" VerticalAlignment="Top" Width="345" />
        					<Button Content="Cancel" Height="26" HorizontalAlignment="Right" Margin="0,107,109,0" x:Name="bttnCancelKML" VerticalAlignment="Top" Width="97" Click="bttnCancelKML_Click" />
        					<TextBox Height="27" HorizontalAlignment="Right" Margin="0,46,48,0" x:Name="txtKMLName" VerticalAlignment="Top" Width="365" />
        					<TextBlock Height="22" HorizontalAlignment="Left" Margin="54,0,0,68" x:Name="textBlock4" Text="Enter KML Name :" VerticalAlignment="Bottom" Width="101" />
        					<Label Height="24" HorizontalAlignment="Left" Margin="6,77,0,0" x:Name="lblKMZStatus" VerticalAlignment="Top" Width="552" />
        				</Grid>
        			</GroupBox>
        		</Grid>
        	</TabItem>
        	<TabItem Header="GPX Utility">
        		<Grid Background="#FFE5E5E5">
                    <GroupBox Header="ElevationDataUpdate" HorizontalAlignment="Left" Margin="8,8,0,0" x:Name="groupBox3" VerticalAlignment="Top" Width="577" Height="161.723">
                        <Grid>
                            <Button x:Name="bttnUpdateElevation" Content="Update Elevation Data" Height="26" Margin="0,8,8,0" VerticalAlignment="Top" Click="bttnUpdateElevation_Click" d:LayoutOverrides="VerticalAlignment" HorizontalAlignment="Right" Width="135" />
                            <ComboBox x:Name="comboElevationUpdateType" Height="24.553" Margin="8,9,0,0" VerticalAlignment="Top" SelectedIndex="0" HorizontalAlignment="Left" Width="136">
                                <ComboBoxItem>Waypoints</ComboBoxItem>
                                <ComboBoxItem>Tracks</ComboBoxItem>
                            </ComboBox>
                            <ProgressBar x:Name="progElevationUpdateStatus" Margin="8,0,8,29.998" Height="31" VerticalAlignment="Bottom"/>
                            <Label x:Name="txtElevationUpdateStatus" Content="" Margin="8,54.17,8,64.996" d:LayoutOverrides="Height"/>
                            <ComboBox Height="24.553" Margin="150,9,254,0" Name="comboElevationUpdateSource" SelectedIndex="0" VerticalAlignment="Top">
                                <ComboBoxItem Content="Google" />
                                <ComboBoxItem Content="USGIS" />
                                <ComboBoxItem Content="Earth" />
                            </ComboBox>
                            <CheckBox Content="Smart Update" Height="16" HorizontalAlignment="Left" Margin="317,15,0,0" Name="chkUpdateElevation" VerticalAlignment="Top" Width="94" IsChecked="True" />
                        </Grid>
                    </GroupBox>
                </Grid>
        	</TabItem>
        </TabControl>
    </Grid>
</Window>
